SftTree/OCX 7.0

SftPictureObject.GetImageList Method

Softel vdm, Inc.

Retrieves the picture object attributes defined as an ImageList image.

Syntax       

VB.NET

object.GetImageList(ByRef ImageList As Object, ByRef ImageIndex As Short)

VB

object.GetImageList(ImageList As Object, ImageIndex As Integer)

C#.NET

void object.GetImageList(out object ImageList, out short ImageIndex);

VC++

HRESULT object->GetImageList(LPDISPATCH* ImageList, short* ImageIndex);

C

HRESULT object->raw_GetImageList(LPDISPATCH* ImageList, short* ImageIndex);

Delphi

procedure object.GetImageList(out ImageList : IDispatch, out ImageIndex : Smallint);

object

A SftPictureObject object.

ImageList

Returns the ImageList control.

ImageIndex

Returns the one-based index of the image in the ImageList control used as graphic.

Comments

The GetImageList method retrieves the picture object attributes defined as an ImageList image.

GetImageList only supports ActiveX ImageList controls that offer an IImageList interface.  GetImageListH and SetImageListH support a window handle based ImageList control (Common Controls).

If the current picture object is not based on an ImageList (SftPictureObject.Type other than sftTypeImageList), the returned values are not valid.

See Also  SftPictureObject Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com